package com.zhanglijie.base.volatileLearn;

/**
 * @author zlj
 * @version 1.0
 * @since 1.1.0 2022/5/23 0023 22:24
 */
public class CacheSpace {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        byte[][] content = new byte[10240][10240];
        for (int i = 0; i < 10240; i++) {
            for (int j = 0; j < 10240; j++) {
               // content[i][j] = 1;//按行赋值 一行一行赋值
              content[j][i] = 1;//按列赋值 一列一列赋值
            }
        }
        System.out.println("耗时"+(System.currentTimeMillis()-start));
    }
}
